#include <bwio.h>
#include <ts7200.h>
#include <a1.h>

int main(int argc, char* argv[]) 
{	
	initialize(); // initialize variables
	resetState(); // reset the state	
	
	for (;;) 
	{	
		checkTime(); // update the time
		checkInput(); // read input	
		// checkSensor();	
		
		// see if we should quit
		if (ret != 1)
			return ret;
	}
}

